package com.ironman.compute.generator;


import cn.hutool.core.util.RandomUtil;
import lombok.RequiredArgsConstructor;
import org.noear.snack.ONode;
import org.springframework.stereotype.Component;

@Component
@RequiredArgsConstructor
public class RolComputeDataGenerator extends ComputeDataGenerator {


    @Override
    public String topicType() {
        return "rol";
    }

    @Override
    public ONode generate() {
        return ONode.newObject()
                .set("rol", RandomUtil.randomInt(-180, 180));
    }

}
